# print('hello')
# print('world')
# print(123456789123456789+5672517846578435682175634758)
# a=10
# b = 120
# a = b
# print('a = ' , a)
# print('b = ' , b)
# c=3.3
# print(type(c))
# d='c'
#
# print("hello world")
# print(type(d))
#
# e='my name is "wangkai"'
# print(e)
#
# f='''my name is "wangkai"'''
# print(f)
# print(len(d))
# print(e+d)

# a = 10
# b = 20
# # print(type(a))
# # print(type(b))
# def func(a,b):
#     print(a,b)
#     # pass
# func(a,b)
# print(f"a = {a}")#这个语法叫格式化字符串，f-string，f表示format
# print(f"a = {a + 10}")
# num1=input('please input the first intnumber:')
# num2=input('please input the second intnumber:')
# num1=int(num1)
# num2=int(num2)
# print(f'您输入的数字是{num1+num2}')

#乘方
# print(2**3)

#向下取整除法//
# print(7//3)
# print(-7//3)
# a=10
# b=20
# c=30
# print(a<b and b<c)
# print(a>b or c>b)
# print(not a>b)
# a = 10
# print('a=', a)
# num1 = input('please input number')
# num2 = input('please input number')
# print(num1+num2)
# num1 = int(num1)
# num2 = int(num2)

# print(f"num1+num2={num1+num2}")
# print(f'a={a}')
# print(f"a={a + 10}")
# print(f'a={a + 10}')
# d = 30
# d = float(d)
# print("please print '' 'wangkai''''")
# f='''my name is "wangkai"'''
# print(f)
# print( 2**4 )
# print(4//3)

# def func(a,b):
#      print(a + b)
# pass
# a = 10
# b = 20
# func(a,b)
# a, b = b, a
# print(a, b)
# a, b = 30, 40
# print(a, b)
# a=True

# a = int(input("please input a number:"))
# if a == 1 :
#      #print('a')
#      pass
# elif a == 2 :
#      print('as')
# else :
#      print('bhu')
# num=1;
# while num<=10 :
#   print(int(num))
# i=1
# sum=10
# for i in range(1,13,2):
#      if int(i) == 3 :
#           continue
#      elif int(i) == 9:
#           break
#      print(i)


# a = 10
# #''' '''相当于 “ ”，都只会输出引号内的内容
# print(f'a+10的和为{int(a) + 10}')
# print(f'a+10的和为{a + 10}')
# print('niaho')
# print('''hello python''')
# print("hello python")
# input会返回一个字符串类型，进行运算只会是字符串之间的运算，若需要进行特定运算，需要强转成其他类型
# 输入数据时必须换行
# c = input()
# print(type(c))
# b = input()
# print(type(b))
# d = int(c) + int(b)
#
# print(d)
# print(int(d))
# print(type(d))
# print(type(print))
# a = -10
# b = 10
# print(type(a))
# # 第一个操作数为true返回第二个操作数，反之返回第一个操作数
# print(a and b)
# # 第一个操作数为true返回第一个操作数，反之返回第二个操作数
# print(a or b)
# print(not (a < b))

# print(7//2)

# tax = 125
# tax / 5
# price = tax
# print(price)
# a = 3+5j
# print(a)
# from decimal import Decimal,getcontext
# getcontext().prec = 4
# a=Decimal(0.1)
# print(a)
# b=3.1
# print(b)
# print('doesn\'t')
# print(r'"Yes,"they said.\\')
# print("""\
# Usage: thingy [OPTIONS]
#      -h                        Display this usage message
#      -H hostname               Hostname to connect to
# """)
# print(3*'ni'+'hao')
# print('py' 'thon')
# word='python'
# print(word[0:7])
# # word[2:4]区间左闭右开
# print(word[0],word[1],word[-6],word[2:4])
# print(word[:3])
# print(word[3:3])
# print(word[3:])
# print(word[:3] + word[3:])
# print(word[-4:5])
# # python的字符串不能修改，word[0]='j'是错的，可以使用加法
# print(len(word+'python'))

# 合并不会去重，相同的元素也会保留
import ctypes
i=0;
s=['sss',2,3,4.2,'s']
a=[1,2,3,4,6,9]
print(s[0:6])
print(a+s)
print(s+a)
s[1]='ddd'
print(s[0:6])
s.append(999)
print(s[0:7])
s=['sss',2,3,4.2,'s']
rgb = ['red','blue','black']
rgbb = rgb
print(id(rgbb) == id(rgb))
d=[[1,2,3],[3,4,5],[4,5,6]]
print(d[1][2],end=',')
print(d[1][2])

print('nihao \'nihao\' ')
print("nihao 'nihao' ")


